package org.dea.mapping;

import junit.framework.TestCase;


public class DistributedComponentTest extends TestCase {

	private DistributedComponent component;

	protected void setUp() throws Exception {
		this.component = new DistributedComponent();
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setHostPort(int)'
	 */
	public void testSetHostPort() {
		assertEquals(0, this.component.getHostPort());
		this.component.setHostPort(9090);
		assertEquals(9090, this.component.getHostPort());
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setFacade(String)'
	 */
	public void testSetFacade() {
		assertNull(this.component.getFacade());
		this.component.setFacade("buh!!!");
		assertEquals("buh!!!", this.component.getFacade());
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setHostAddress(String)'
	 */
	public void testSetHostAddress() {
		assertNull(this.component.getHostAddress());
		this.component.setHostAddress("buh!!!");
		assertEquals("buh!!!", this.component.getHostAddress());
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setHostLabel(String)'
	 */
	public void testSetHostLabel() {
		assertNull(this.component.getHostLabel());
		this.component.setHostLabel("buh!!!");
		assertEquals("buh!!!", this.component.getHostLabel());
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setJarPath(String)'
	 */
	public void testSetJarPath() {
		assertNull(this.component.getJarPath());
		this.component.setJarPath("buh!!!");
		assertEquals("buh!!!", this.component.getJarPath());
	}

	/*
	 * Test method for 'org.dea.mapping.DistributedComponent.setName(String)'
	 */
	public void testSetName() {
		assertNull(this.component.getName());
		this.component.setName("buh!!!");
		assertEquals("buh!!!", this.component.getName());
	}

}
